# Makefile for VelOS
GCCPATH := D:\djgcc\bin
GCCCOM := -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I ./src/includes

build\kernel.bin : build\main.o build\boot.o
	$(GCCPATH)\ld.exe -T link.ld -o .\build\kernel.bin build\main.o build\boot.o
build\boot.o : src\boot.asm
	nasm.exe -f aout -o .\build\boot.o .\src\boot.asm
build\main.o : src\main.c src\includes\system.h
	$(GCCPATH)\gcc.exe $(GCCCOM) -o ./build/main.o -c ./src/main.c
	
# Clean
.PHONY clean:
	del build\*.o